package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.dto.RecommendUserDto;
import com.tanhua.model.pojo.UserInfo;

import java.util.List;

public interface UserInfoApi {

    void save(UserInfo userInfo);

    void update(UserInfo userInfo);

    UserInfo findById(Long id);

    Page<UserInfo> findBlackList(Long userId, Integer page, Integer pagesize);

    Page<UserInfo> findByDto(List<Long> ids, RecommendUserDto recommendUserDto);

    List<UserInfo> findByIds(List<Long> ids);

    Page<UserInfo> findInfoPage(List<Long> ids, Integer page, Integer pagesize, String keyword);

    List<UserInfo> findByIdsGender(List<Long> ids, String gender);

    Page<UserInfo> pages(Integer page, Integer pagesize);
}
